package com.ld.xuanKe.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ld.xuanKe.util.TimestampStringConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.sql.Timestamp;

/**
 * @ProjectName xuanKe
 * @ClassName Select
 * @Author 刘邓
 * @Date 2023-12-09 10:37
 */
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Selectd {
	@javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.IDENTITY)
	@javax.persistence.Id
	@javax.persistence.Column(name = "id", nullable = false)
	@ExcelProperty("选课编号")
	private Integer id;

	@javax.persistence.Basic
	@javax.persistence.Column(name = "user_id", nullable = false)
	@ExcelProperty("学生id")
	private Integer userId;


	@javax.persistence.Basic
	@javax.persistence.Column(name = "course_id", nullable = false)
	@ExcelProperty("课程id")
	private Integer courseId;



	@javax.persistence.Basic
	@javax.persistence.Column(name = "time", nullable = true)
	@ExcelProperty(value = "选课时间",converter = TimestampStringConverter.class)
	private Timestamp time;


}
